package com.xgc.controller;

import com.xgc.server2.Server2FeignClient;
import io.micrometer.observation.annotation.Observed;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private Server2FeignClient server2FeignClient;
    @GetMapping("/test")
    public String test(String doSomething){
        System.out.println(doSomething);
        server2FeignClient.getValue("调用服务2了！");
        return "这是server1";
    }
}
